import request from '@/utils/request'

// 查询资源请求列表
export function listResourcerequest(query) {
  return request({
    url: '/resourcerequest/resourcerequest/list',
    method: 'get',
    params: query
  })
}

// 查询资源请求详细
export function getResourcerequest(requestId) {
  return request({
    url: '/resourcerequest/resourcerequest/' + requestId,
    method: 'get'
  })
}

// 新增资源请求
export function addResourcerequest(data) {
  return request({
    url: '/resourcerequest/resourcerequest',
    method: 'post',
    data: data
  })
}

// 修改资源请求
export function updateResourcerequest(data) {
  return request({
    url: '/resourcerequest/resourcerequest',
    method: 'put',
    data: data
  })
}
// 审核资源请求
export function authResourcerequest(data) {
  return request({
    url: '/resourcerequest/resourcerequest/auth',
    method: 'put',
    data: data
  })
}
// 删除资源请求
export function delResourcerequest(requestId) {
  return request({
    url: '/resourcerequest/resourcerequest/' + requestId,
    method: 'delete'
  })
}
